<%--
  Created by IntelliJ IDEA.
  User: 路帅
  Date: 2021/8/6
  Time: 13:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script>
        function qd() {
            if (confirm("确认修改吗?")) {
                document.forms[0].submit();
            }
        }

        function qx() {
            window.location.href = "/show";
        }
    </script>
    <style>
        #div1 {
            align-self: center;
            line-height: 3em;
        }

    </style>
</head>
<body>
<div id="div1">
    <form action="/reset" method="post">
        <div>用户名：<input type="text" style="color: slategray" name="username" value="${USER_IN_SESSION.username}"
                        readonly></div>
        <div>&nbsp;&nbsp;&nbsp;密码：<input type="text" name="password" value="${USER_IN_SESSION.password}"></div>
        <div>
            &nbsp;&nbsp;&nbsp;头像：<img src="${USER_IN_SESSION.headImg}" width="100px">
            <a href="/replaceImg.jsp">更换头像</a>
        </div>
        <div>
            <input type="button" value="确定" onclick="qd()">
            <input type="button" value="取消" onclick="qx()">
        </div>

    </form>
</div>
</body>
</html>
